package com.cq.company.controller;

import com.cq.company.entity.TB_CompanyBusinessInformation;
import com.cq.company.service.CompanyBusinessInformationService;
import com.cq.system.util.BaseResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/company")
public class CompanyController {
    @Autowired
    CompanyBusinessInformationService companyBusinessInformationService;

    @RequestMapping("/getCompany")
    public BaseResponse<TB_CompanyBusinessInformation> getCompany() {
        return BaseResponse.success(companyBusinessInformationService.getCompany());
    }
}